package com.hanbang.taitaigou.model;

/**
 * Created by Fangzh on 2016/3/31.
 */
public class SearchGoodsData {
    private int id;
    private int sort_id;
    private String gname;
    private String subtitle;
    private String unit;
    private double market_price;
    private double retail_price;
    private String img_url;
    private int pknum;
    private double quantity;
    /**
     * 选择的商品的数目
     */
    private int number;


    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getSort_id() {
        return sort_id;
    }

    public void setSort_id(int sort_id) {
        this.sort_id = sort_id;
    }

    public String getGname() {
        return gname;
    }

    public void setGname(String gname) {
        this.gname = gname;
    }

    public String getSubtitle() {
        return subtitle;
    }

    public void setSubtitle(String subtitle) {
        this.subtitle = subtitle;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public double getMarket_price() {
        return market_price;
    }

    public void setMarket_price(double market_price) {
        this.market_price = market_price;
    }

    public double getRetail_price() {
        return retail_price;
    }

    public void setRetail_price(double retail_price) {
        this.retail_price = retail_price;
    }

    public String getImg_url() {
        return img_url;
    }

    public void setImg_url(String img_url) {
        this.img_url = img_url;
    }

    public int getPknum() {
        return pknum;
    }

    public void setPknum(int pknum) {
        this.pknum = pknum;
    }

    public double getQuantity() {
        return quantity;
    }

    public void setQuantity(double quantity) {
        this.quantity = quantity;
    }

    public DbGwcData getDbGwcData() {
        return new DbGwcData(id, market_price, retail_price, number, gname, img_url, (int) quantity);
    }


    @Override
    public String toString() {
        return "SearchGoodsData{" +
                "id=" + id +
                ", sort_id=" + sort_id +
                ", gname='" + gname + '\'' +
                ", subtitle='" + subtitle + '\'' +
                ", unit='" + unit + '\'' +
                ", market_price=" + market_price +
                ", retail_price=" + retail_price +
                ", img_url='" + img_url + '\'' +
                ", pknum=" + pknum +
                ", quantity=" + quantity +
                ", number=" + number +
                '}';
    }
}
